package designPattern.structure7.combind.chapter18_5;

import java.util.Iterator;

public interface TreeComponent {
    public void add(TreeComponent node);

    public void remove(TreeComponent node);

    public TreeComponent getChild(int index);

    public Iterator<TreeComponent> getAllChildren();

    public boolean isLeaf();

    public double getWeight();
}